<script setup>
import { onMounted, ref } from 'vue';
import MyTag from './components/MyTag.vue';

const myTagRef = ref(null)
onMounted(() => {
  console.log(myTagRef.value.msg)
  myTagRef.value.showAlert()
})
</script>

<template>
  <div>
    <MyTag ref="myTagRef" />
  </div>
</template>

<style scoped></style>